package com.express.entity;


import com.gitee.sunchenbin.mybatis.actable.annotation.Table;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 系统权限表
 */
@Table(name = "sys_permission")//设置表名
public class Permission {
//    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true,comment = "ID")
    private Integer id;
//    @Column(name = "per_code",type = MySqlTypeConstant.VARCHAR,length = 10,comment = "菜单编码")
    private String perCode;
//    @Column(name = "per_name",type = MySqlTypeConstant.VARCHAR,length = 50,comment = "菜单名称")
    private String perName;
//    @Column(name = "parent_id",type = MySqlTypeConstant.INT,length = 10,comment = "父级id")
    private Integer parentId;
//    @Column(name = "parent_name",type = MySqlTypeConstant.VARCHAR,length = 20,comment = "父级的菜单名称")
    private String parentName;
//    @Column(name = "per_type",type = MySqlTypeConstant.VARCHAR,length = 10,comment = "菜单类型")
    private String perType;
//    @Column(name = "zlevel",type = MySqlTypeConstant.INT,length = 10,comment = "等级")
    private Integer zlevel;
//    @Column(name = "zindex",type = MySqlTypeConstant.INT,length = 10,comment = "排序")
    private Integer zindex;
//    @Column(name = "icon",type = MySqlTypeConstant.VARCHAR,length = 10,comment = "图标")
    private String icon;
//    @Column(name = "path",type = MySqlTypeConstant.VARCHAR,length = 100,comment = "图标目录")
    private String path;
//    @Column(name = "is_show",type = MySqlTypeConstant.INT,length = 10,comment = "是否显示")
    private Integer isShow;
//    @Column(name = "remark",type = MySqlTypeConstant.VARCHAR,length = 255,comment = "备注")
    private String remark;
//    @Column(name = "create_id",type = MySqlTypeConstant.VARCHAR,length = 10,comment = "创建人id")
    private String createId;
//    @Column(name = "create_time",type = MySqlTypeConstant.DATETIME,comment = "创建时间")
    private Date createTime;
    //@Column(name = "update_id",type = MySqlTypeConstant.VARCHAR,length = 10,comment = "更新人id")
    private Integer updateId;
    //@Column(name = "update_time",type = MySqlTypeConstant.DATETIME,comment = "更新时间")
    private Date updateTime;

    private List<Permission> children = new ArrayList();

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPerCode() {
        return this.perCode;
    }

    public void setPerCode(String perCode) {
        this.perCode = (perCode == null ? null : perCode.trim());
    }

    public String getPerName() {
        return this.perName;
    }

    public void setPerName(String perName) {
        this.perName = (perName == null ? null : perName.trim());
    }

    public Integer getParentId() {
        return this.parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getPerType() {
        return this.perType;
    }

    public void setPerType(String perType) {
        this.perType = (perType == null ? null : perType.trim());
    }

    public Integer getZindex() {
        return this.zindex;
    }

    public void setZindex(Integer zindex) {
        this.zindex = zindex;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = (icon == null ? null : icon.trim());
    }

    public String getPath() {
        return this.path;
    }

    public void setPath(String path) {
        this.path = (path == null ? null : path.trim());
    }

    public Integer getIsShow() {
        return this.isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = (remark == null ? null : remark.trim());
    }

    public String getCreateId() {
        return this.createId;
    }

    public void setCreateId(String createId) {
        this.createId = (createId == null ? null : createId.trim());
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUpdateId() {
        return this.updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<Permission> getChildren() {
        return this.children;
    }

    public void setChildren(List<Permission> children) {
        this.children = children;
    }

    public Integer getZlevel() {
        return this.zlevel;
    }

    public void setZlevel(Integer zlevel) {
        this.zlevel = zlevel;
    }

    public String getParentName() {
        return this.parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
}
